#ifndef BOTMAKERSAGENT_H
#define BOTMAKERSAGENT_H

#include "mib2sys.h"
#include "ai.h"

#define MAG_CUSTOM_MESSAGE            0
#define MAG_CUSTOM_USERNAME           1

typedef struct {
	uint32_t ipAddr;
	char name[MAX_SYSSTR_LEN];
} NameRegistry;

static OID base_oid[] = { 1, 3, 6, 1, 3, 55, 0 };
static size_t base_oidlen = sizeof(base_oid) / sizeof(OID);
int SnmpSendBroadcastMessage(UDPSOCKET * sock, char * message, const char *senderName);
int SnmpAskNames(UDPSOCKET * sock);
int SnmpAskName(UDPSOCKET * sock, uint32_t ipAddr);
NameRegistry *SnmpFindNameByIP(uint32_t ipAddr);
int SnmpBotmakersAgent(UDPSOCKET * sock);
void SnmpDisplayNames(void);
void SnmpLogMessage(const char *message, const char *senderName);
extern SNMP_SESSION *sess;
extern uint32_t senderIP;
extern UDPSOCKET *sock;

extern NameRegistry *names;
extern int nameLen;
extern int nameMaxLen;
extern int requestName;
extern AIContext *ctx;

#endif
